import {
	ApiUtils,
	_axios
} from 'api/apiUtil.js';
import constant from 'util/constant.js';

const api = {
	getInfo: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/getInfo", request, successCallback, failCallback, exceptionCallback);
	},
	toUploadHead: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/toUploadHead", request, successCallback, failCallback, exceptionCallback);
	},
	uploadHead: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/uploadHead", request, successCallback, failCallback, exceptionCallback);
	},
	toUpdateInfo: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/toUpdateInfo", request, successCallback, failCallback, exceptionCallback);
	},
	updateInfo: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/updateInfo", request, successCallback, failCallback, exceptionCallback);
	},
	updatePwd: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/main/updatePwd", request, successCallback, failCallback, exceptionCallback);
	},
}
export default api;
